import * as types from "./actions-type";
export function djInfoRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_DJINFO:
      return payload;
    default:
      return state;
  }
}
export function playInfoRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_PLAYINFO:
      return payload;
    default:
      return state;
  }
}
export function canPlayListRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_CANPLAYLIST:
      return payload;
    default:
      return state;
  }
}
export function playPrivilegesRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_PLAYPRIVILEGES:
      return payload;
    default:
      return state;
  }
}
export function recommendListRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_RECOMMENDLIST:
      return payload;
    default:
      return state;
  }
}
export function recommendDjRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_RECOMMENDDJ:
      return payload;
    default:
      return state;
  }
}
export function recommendNewSongRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_RECOMMENDNEWSONG:
      return payload;
    default:
      return state;
  }
}
export function recommendRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_RECOMMEND:
      return payload;
    default:
      return state;
  }
}
export function myCreateListRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_MYCREATELIST:
      return payload;
    default:
  }
  return state;
}
export function myCollectListRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_MYCOLLECTLIST:
      return payload;
    default:
      return state;
  }
}
export function currentSongIdRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_CURRENTSONGID:
      return payload;
    default:
      return state;
  }
}
export function currentSongInfoRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_CURRENTSONGINFO:
      return payload;
    default:
      return state;
  }
}
export function currentSongIndexRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_CURRENTSONGINDEX:
      return payload;
    default:
      return state;
  }
}
export function playModeRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_PLAYMODE:
      return payload;
    default:
      return state;
  }
}
export function likeMusicListRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_LIKEMUSICLIST:
      return payload;
    default:
      return state;
  }
}
export function isPlayingRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_ISPLAYING:
      return payload;
    default:
      return state;
  }
}
export function recentTabRedcer(state, action) {
  const { type, payload } = action;
  switch (type) {
    case types.SET_RECENTTAB:
      return payload;
    default:
      return state;
  }
}
